home *** CD-ROM | disk | FTP | other *** search
/ Computer Select (Limited Edition) / Computer Select.iso / pcc / v04n09 / zipit.doc < prev   
Encoding:
Text File  |  1991-09-09  |  2.2 KB  |  48 lines

  1. PC/Computing               September 1991          ZIPIT.DOC
  2. Ed Bott                                             Page 232
  3.  
  4.        QBasic + PKzip = Fast, Easy Backups
  5.        -----------------------------------
  6.        DOS 5.0's all0new QBasic is just the ticket
  7.        for adding a menu-driven shell to PKzip's
  8.        command-line interface.
  9.        
  10. NOTE: ZIPIT is hard-coded for the destination directory named
  11. C:\ZIPFILES and a location for PKZIP of C:\UTILS\ZIP. You will
  12. need to modify the source file with DOS 5's QBASIC to your own
  13. directory structure, as explained in the magazine.
  14.  
  15. ZIPIT.BAS wraps a friendly shell around PKzip. By following a 
  16. series of menus, you specify the type of backup and the file (or
  17. files) to be backed up; one particularly useful menu choice lets 
  18. you select every file on the current drive that was created or 
  19. modified that day.  Next, you name the destination file. A simple 
  20. error-checking routine rejects illegal filenames and tacks a .ZIP 
  21. extension on the destination.  Finally, the program zips the 
  22. selected files into one neat package that it deposits into a 
  23. predetermined directory.  To use ZIPIT.BAS, you'll need a copy of 
  24. PKZIP.EXE (see * below) and the QBasic interpreter included with 
  25. DOS 5.0.
  26.  
  27. The simplest way to use ZIPIT.BAS is to create a ZIPIT.BAT batch
  28. file containing the following command (add the full pathname for
  29. ZIPIT.BAS if it's not stored in the root directory):
  30.  
  31.    QBASIC /RUN ZIPIT.BAS
  32.  
  33. Save the batch file in a directory that's referenced in your
  34. system's path.  Then, switch to the directory containing the
  35. files to be zipped, type ZIPIT, and follow the menu prompts.
  36.  
  37. *  If you'd rather use ARC, LHARC, or even the DOS BACKUP command 
  38.    instead of PKzip, you should be able to do it with a minimum of
  39.    fuss.  You'll need to change the switches and check the command
  40.    line in the ZipIt subprogram to be sure all the parameters are
  41.    listed in the right order.
  42.  
  43.  
  44. Material in this document may not be reproduced in any form 
  45. without permission. Written requests for permission should 
  46. be addressed to Chantal Lavelanet, Ziff-Davis Publishing 
  47. Company, One Park Avenue, New York, NY  10016.
  48.